<div id="view_client" class="zoom-anim-dialog view-booking-popup-edit relative">                   

<h1 class="right">عرض سند الصرف</h1>
<input type="button" style="border:none;" class="left margin-top5 cursor print red" value="طباعة السند"/>

<div class="clear"></div>
<hr />
<br />
<div class="print-wrap">
<div class="view-booking-popupz ltr">

        
        <table class="view-bookings-table">
            <tbody><tr>
                <td style="width: 24px; height: 2px;">
                </td>
                <td>
                </td>
                <td>
                </td>
                <td>
                </td>
                <td style="width: 24px;">
                </td>
            </tr>
            <tr>
                <td style="height: 64px;">
                </td>
                <td colspan="3">
                    <table style="width: 100%; height: 100%; border: 1px solid black;" border="0">
                        <tbody><tr>
                            <td style="width: 72px;" rowspan="4">
                                <div style="margin: 4px 4px 4px 4px; width: 64px; height: 64px;">
                                </div>
                            </td>
                            <td colspan="2" rowspan="2" style="text-align: center"><span class="medium bold"><?php echo $_SESSION['organization']; ?></span></td>
                            <td style="width: 64px;">&nbsp;
                                
                            </td>
                            <td style="width: 16px;">&nbsp;
                                
                            </td>
                        </tr>
                        <tr>
                            <td>&nbsp;
                                
                            </td>
                            <td>&nbsp;
                                
                            </td>
                        </tr>
                                                <tr>
                          <td><a style=""href="./"> 
                                        <img src="<?php echo $_SESSION['logo']; ?>" class="right" title="Nazeel" Alt= "logo" style="position: relative;top: -25px;left:40px"/></a>
                                        <p class="black" style="position:relative;    top: 21px;left: 0px;"><?php echo $_SESSION['organization']; ?></p>
                                        <div class="clear"></div></td>
                        </tr>

                        <tr>
                            <td class="center" style="width:100% ;direction:rtl" >
                              <!--<strong class="text-right"></strong>هاتف :<?php //echo $_SESSION['place']; ?>&nbsp;&nbsp;&nbsp;<strong>
                              <strong class="text-right"></strong><?php //echo $_SESSION['phone']; ?>&nbsp;&nbsp;&nbsp;<strong>
                                        <strong class="text-right"></strong>&nbsp;&nbsp;&nbsp;<strong>-->
                                        <span><strong class="text-right">هاتف: </strong><?php echo $_SESSION['phone']; ?></span>&nbsp;&nbsp;&nbsp;</span>
                                        <span><strong class="text-right">فاكس: </strong><?php echo $_SESSION['fax']; ?></span>&nbsp;&nbsp;&nbsp;</span>
                                        <!--<span><strong class="text-right">ايميل: </strong> LEMAR@tawaf.sa</span>&nbsp;&nbsp;&nbsp;</span>-->
                                        <span><strong class="text-right">الموقع: </strong><?php echo $_SESSION['website']; ?></span>&nbsp;&nbsp;&nbsp;</span>
                            </td>
                        </tr>
                        <tr>
                            <td class="OppTextAlign">&nbsp;
                                
                            </td>
                            <td style="" class="TextAlign">&nbsp;
                                
                            </td>
                            <td style="" class="TextAlign">&nbsp;
                                
                            </td>
                            <td style="" class="TextAlign">&nbsp;
                                
                            </td>
                        </tr>
                    </tbody></table>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td style="height: 8px;">
                </td>
                <td>
                </td>
                <td>
                </td>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td colspan="3">
                    <div id="content_container">
                        <div style="border: 1px solid black;" class="TextAlign">
                            <table style="width: 100%" cellpadding="1" cellspacing="1">
                                <tbody>
                                <tr><td colspan="10" class="large center">                                        سند صرف
                                    </td></tr>
                                <tr>
                                    <td style="width: 200px; height: 10px;" colspan="4">
                                    </td>
                                    <td>
                                    </td>
                                    <td style="width: 200px;" colspan="4">
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 24px;">
                                    </td>
                                    <td>
                                        <strong>
                                          <?php echo $payment['payment_id']; ?></strong>
                                    </td>
                                    <td style="width: 10px; text-align: center;">
                                        :
                                    </td>
                                    <td style="width: 60px;" class="OppTextAlign">
                                        رقم السند 
                                    </td>
                                    <td style="width: 140px; text-align: center; font-size: 16pt; font-weight: bold;
                                        font-family: 'Times New Roman', Times, serif; text-decoration: underline;"></td>
                                    <td style="width: 140px;" class="Direction">
                                        <strong>
                                           <?php echo  $payment['miladi_date']." ".date('g:ia');?> </strong>
                                    </td>
                                    <td style="width: 10px; text-align: center;">
                                        :
                                    </td>
                                    <td style="width: 52px;" class="TextAlign Direction">
                                        التاريخ
                                    </td>
                                    <td style="width: 24px;">
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 24px;">&nbsp;
                                        
                                    </td>
                                    <td>
                                        <strong>
                                           <?php echo $payment['contract_id']; ?>
                                        </strong>
                                    </td>
                                    <td style="width: 10px; text-align: center;">
                                        :
                                    </td>
                                    <td style="width: 140px;" class="OppTextAlign">
                                        رقم العقد
                                    </td>
                                    <td style="text-align: center; font-size: 16pt; font-weight: bold; font-family: 'Times New Roman', Times, serif;
                                        text-decoration: underline;">
                                    </td>
                                    <td style="width: 240px;" class="Direction">
                                        <strong>
                                            <?php echo $payment['Hijri_date'] ;?></strong>
                                    </td>
                                    <td style="width: 10px; text-align: center;">
                                        :
                                    </td>
                                    <td style="width: 52px;" class="TextAlign Direction">
                                        الموافق
                                    </td>
                                    <td style="width: 24px;">&nbsp;
                                        
                                    </td>
                                </tr>
								<tr>
                                    <td style="width: 24px;">&nbsp;
                                        
                                    </td>
                                    <td>
                                        <strong><?php echo date("h:i:s",strtotime($payment['created_at'])); ?></strong>
                                    </td>
                                    <td style="width: 10px; text-align: center;">
                                        :
                                    </td>
                                    <td style="width: 150px;" class="OppTextAlign">
                                       وقت إنشاء السند
                                    </td>
                                    <td style="text-align: center; font-size: 16pt; font-weight: bold; font-family: 'Times New Roman', Times, serif;
                                        text-decoration: underline;">
                                    </td>
                                    <td style="width: 240px;" class="Direction">
                                        <strong><?php echo date("d-m-Y",strtotime($payment['created_at'])); ?></strong>
                                    </td>
                                    <td style="width: 10px; text-align: center;">
                                       : 
                                    </td>
                                    <td style="width: 150px;" class="TextAlign Direction">
                                    
                                           تاريخ إنشاء السند
									</td>
                                    <td style="width: 24px;">&nbsp;
                                      
                                    </td>
                                </tr>
                            </tbody></table>
                            <hr />
                            <table style="width: 100%" class="settTable">
                                <tbody><tr>
                                    <td style="width: 24px;">&nbsp;
                                        
                                    </td>
                                    <td style="" colspan="2" class="">
                                        <strong><?php echo $payment['amount']; ?>  ر.س    </strong>
                                    </td>
                                    <td style="width: 10px; direction: rtl;" align="center">
                                        :
                                    </td>
                                    <td style="width: 90px;" class="TextAlign Direction">
                                        تم صرف مبلغ
                                    </td>
                                    
                                </tr>
                                <tr>
                                    <td style="width: 24px;">
                                    </td>
                                    <td style="" colspan="2" class="TextAlign Direction">
                                        <strong>
                                           <?php echo $payment['recipient']; ?></strong>
                                    </td>
                                    <td style="width: 10px;" align="center">
                                        :
                                    </td>
                                    <td style="width: 130px;" class="TextAlign Direction">
                                        لأمر السيد / السادة
                                    </td>
                                    
                                </tr>
                                <tr>
                                    <td>
                                    </td>
                                    <td class="TextAlign">
                                        
                                    </td>
                                    <td style="" class="TextAlign">
                                        <strong>
                                            <?php echo $payment_method[ $payment['paymen_method'] ]; ?></strong>
                                    </td>
                                    <td style="text-align: center" class="TextAlign">
                                        :
                                    </td>
                                    <td>
                                        طريقة الدفع
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                    </td>
                                    <td colspan="2" style="vertical-align: top;" class="TextAlign">
                                        <strong>
                                           <?php echo $payment['reason']; ?></strong>
                                    </td> 
                                    <td style="vertical-align: top; text-align: center;">
                                        :
                                    </td>
                                    <td style="vertical-align: top;" class="TextAlign">
                                        وذلك من اجل
                                    </td> 
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 24px;">
                                    </td>
                                    <td style="" colspan="2" class="TextAlign Direction">
                                        <strong>
                                           <?php echo $payment['notes']; ?> </strong>
                                    </td>
                                    <td style="width: 10px;" align="center">
                                        :
                                    </td>
                                    <td style="width: 90px;" class="TextAlign Direction">
                                        ملاحظات
                                    </td>
                                    
                                </tr>
                                <tr>
                                    <td>
                                    </td>
                                    <td colspan="4" style="vertical-align: top;" class="TextAlign">
                                        <strong>
                                            
                                        </strong>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                            </tbody></table>
                            <table style="width: 100%">
                                <tbody><tr>
                                    <td style="width: 24px;">
                                    </td>
                                    <td colspan="7" style="text-align: center" class="Direction">
                                        <strong style="color: Red">
                                            
                                        </strong>
                                    </td>
                                    <td style="width: 24px;">
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                    </td>
                                    <td colspan="7">
                                        <hr>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                    <td style="width: 33%; text-align: center;">
                                        المدير
                                    </td>
                                    <td>
                                    </td>
                                    <td style="width: 33%; text-align: center;">
                                        أمين الصندوق
                                    </td>
                                    <td>
                                    </td>
                                    <td style="width: 33%; text-align: center;">
                                        اسم المستلم
                                    </td>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="height: 8px;" colspan="9">
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                    <td style="width: 33%; text-align: center;">
                                        ..............................
                                    </td>
                                    <td>
                                    </td>
                                    <td style="width: 33%; text-align: center;">
                                        <strong>
                                            ………….
                                        </strong>
                                    </td>
                                    <td>
                                    </td>
                                    <td style="width: 33%; text-align: center;">
                                        <strong>
                                           <?php echo $payment['recipient']; ?></strong>
                                    </td>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="9" style="height: 8px;">
                                    </td>
                                </tr>
                            </tbody></table>
                        </div>
                    </div>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>&nbsp;
                    
                </td>
                <td>
                </td>
                <td>
                </td>
                <td>
                </td>
            </tr>
        </tbody></table>
        <!--<table class="view-bookings-table" style="width: 100%;" border="0" cellpadding="0" cellspacing="0">
            <tbody><tr>
                <td style="width: 24px;">&nbsp;
                    
                </td>
                <td style="width: 140px;font-size:7pt !important" class="OppTextAlign">
                    <strong style="font-size:7pt !important">
                        الرمز البريدي : 11412
                    </strong>
                </td>
                <td style="text-align: center;font-size:7pt !important;width:140px;">
                    <strong style="font-size:7pt !important">
                        صندوق بريد : 4727
                    </strong>
                </td>
                <td class="TextAlign Direction">
                    <strong style="font-size:7pt !important">
                        البريد الالكتروني : m.badr@ageht.com
                    </strong>
                </td>
                <td style="width: 24px;">&nbsp;
                    
                </td>
            </tr>
            <tr>
                <td style="height: 24px;">&nbsp;
                    
                </td>
                <td>&nbsp;
                    
                </td>
                <td>&nbsp;
                    
                </td>
                <td>&nbsp;
                    
                </td>
                <td>&nbsp;
                    
                </td>
            </tr>
        </tbody></table>-->
        <div class="mfp-close close-button white" >x</div>
    </div> 
</div>    </div>    